exports.requestProcess = function (req) {
    return new Promise((resolve, reject) => {
        try {
            let requestBodyStr = '';
            req.on('data', data => {
                requestBodyStr += data.toString();
            }).on('end', () => {
                resolve(requestBodyStr);
            });
        } catch (error) {
            reject(error);
        }
    })
}